package Package1;

import java.util.Scanner;

public class demo1 {
    //主函数
    public static void main(String[] args) {
        System.out.println("请输入一个三位数：");
        Scanner sc = new Scanner(System.in);
        int number = sc.nextInt();
        System.out.println("个位是："+number%10);
        System.out.println("十位是："+number/10%10);
        System.out.println("百位是："+number/100%10);
    }
}
